package com.zbcn.combootredis.repository;

import com.zbcn.combootredis.entity.UserLike;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

public interface UserLikeRepository extends JpaRepository<UserLike,Integer> {

	Page<UserLike> findByLikedUserIdAndStatus(String likedUserId, Integer status, Pageable pageable);

	Page<UserLike> findByLikedPostIdAndStatus(String likedPostId, Integer status, Pageable pageable);

	UserLike findByLikedUserIdAndLikedPostId(String likedUserId, String likedPostId);
}
